The following documentation contains test scripts
and expected results for validating the CDISC Builder
Matchvar tool. Do the following to verify proper
installation:
- Start CDISC Builder application by double
clicking on the desktop icon.
-
Perform each test by performing the steps specified
by the instructions.
- Evaluate the results of each step by comparing
them with results described in the Documentation
column.
| Script
|
Description
|
Documentation
|
| Source Data |
Type
invalid path.
Navigate
to location with no SAS datasets.
Path
name that is longer than 200 characters.
Use
[...] path navigation.
|
Instructions
1
|
| Data Sets |
List
of datasets match what is in the selected path.
Verify
preview button with a separate PROC PRINT.
Verify
select all button toggle.
Verify
CDISC button selection of all CDISC type datasets.
|
Instructions
2
|
| Tolerance
Score |
Verify
invalid character values
Verify
values less than 1 or greather than 5.
Verify
default to 3
|
Instructions
3
|
|
Report
Title
|
Verify
name that is long over 200 character. Proper
warning message is presented.
Verify
title "Match Variable Names and Labels for Data:
" followed by datasets with comma separated.
|
Instructions 4
|
|
Output
|
Default
the value to be "matchvar_" followed by
names of selected datasets and then extension of
HTML.
Verify
assignment of path with [...].
|
Instructions 5
|
| OK/Cancel |
OK
button applies all selected parameters.
Memory
of all fields are retained.
Cancel
does not apply logic.
|
Instructions 6 |
| Save
Code |
Program
is saved with proper comments
Generated
program is submitted and results verified
|
Instructions 7 |
Instructions
1
Start the CDISC Builder application from the icon in
desktop.
-
Create
the following path if it does not already exist.
c:\temp\cdiscbld\input
c:\temp\cdiscbld\output
-
Submit
the following program:
libname testlib 'c:\temp\cdiscbld\input';
libname outtest 'c:\temp\cdiscbld\output';
options nofmterr;
data testlib.shoes;
set testlib.ae;
run;
data testlib.company;
set testlib.co;
run;
data testlib.manage;
set testlib.dm;
run;
data testlib.shoes;
set sashelp.shoes;
run;
data testlib.company;
set sashelp.company;
run;
data testlib.manage;
set sashelp.manage;
run;
-
Click on the 'MATCHVAR'
icon to open the matchvar screen.
-
Clear all text
in Source Data and click on 'OK' button.
-
Verify that
there is a warning message:
The field (Source Data Path) contains a missing value.
-
Click on the "OK" button to close the
message.
-
Type 'C:\invalidfolder'
in Source Data and click on 'OK' button.
-
Verify that
there is a warning message:
The Source Data does not exist.
-
Click on
[...] button next to Source Data text input.
-
Navigate to
the folder that does not contain any dataset, such as
:output folder.
-
Click on
'OK' button.
-
Verify that
there is a warning message and then close the message:
Select at least one dataset to be matched.
-
Create a
folder with the name is longer than 200 characters, such
as:
-
Click on
[...] button next to Source Data text input.
-
Navigate to
that folder and click 'OK' button.
-
Verify that
there is a warning message:
You cannot select a path longer than 200 characters
using Select dialog. Please enter the path directly to
the Source Data field.
-
Click on
[...] button next to Source Data text input.
-
Navigate to
the folder that contains some datasets, such as: input
folder.
-
Verify that
these datasets will be displayed in Data Sets list box.
Instructions
2
Start the CDISC Builder application from the icon in
desktop.
-
Click on the 'MATCHVAR'
icon to open the matchvar screen.
-
Click on
[...] button next to Source Data text input.
-
Navigate to
'C:\temp\cdiscbld\input' folder.
-
Verify that
DM, AE, CO... will be displayed in Data Sets list box.
-
Choose AE in
Data Sets list and click on 'Preview' button.
-
Verify that the message is displayed:
The following dataset contains user - defined format(s): AE.
-
Close the message.
-
Verify that
there is a report shows all values in AE dataset.
-
Do the same work with SHOES dataset.
-
Verify that the report shows all values in
SHOES dataset
-
Submit
the following program:
libname testlib 'c:\temp\cdiscbld\input';
proc print data=testlib.shoes;
run;
-
Verify that
the result of clicking on Preview button is similar with
the result of proc print command.
-
Click on
'Select All' button and verify that all datasets are
selected.
-
Click on
'Select All' button again and verify that all datasets
are deselected.
-
Click on
'Select All' button again and then click on 'Preview'
button.
-
Verify that
there is a report that shows content of all datasets.
-
Click on 'CDISC'
button and verify that CO, AE and DM datasets are selected.
-
Click on the "Cancel" button to close
Matchvar screen.
Instructions
3
Start the CDISC Builder application from the icon
in desktop.
-
Click on the 'MATCHVAR'
icon to open the matchvar screen.
-
Click on
[...] button next to Source Data text input.
-
Navigate to
'C:\temp\cdiscbld\input' folder.
-
Choose AE in
Data Sets list.
-
Type 'test' in
Tolerance
Score and then click on other buttons or the screen.
-
Verify that
there is a warning message:
The Tolerance
Score must be numeric.
-
Type '9' in Tolerance
Score and then click on other buttons or the screen.
-
Verify that
there is a warning message:
The tolerance
score must be between 1 and 5 where 1 is a tigh fit and
5 is loose.
-
Click on the "OK" button to close the message.
-
Clear the
Tolerance Score if it is not empty.
-
Click on
'Cancel' button to close Matchvar screen.
-
Verify that the following message is displayed:
The field (Tolerance Score) contains a missing value.
-
Click on the "OK" button to close the
message and verify that the Matchvar screen is closed.
-
Click on the 'MATCHVAR'
icon to reopen the Matchvar screen.
-
Verify that
the default value of
Tolerance
Score is 3.
Instructions
4
Start the CDISC Builder application from the icon
in desktop.
-
Click on the 'MATCHVAR'
icon to open the matchvar screen.
-
Click on [...]
next to Source Data text input.
-
Navigate to
'C:\temp\cdiscbld\input' folder.
-
Verify that
DM, AE, CO... will be displayed in Data Sets list box.
-
Choose AE in
Data Sets list.
-
Type some text
contains the special characters like comma and quotes in
Report Title entry, such as: "this' is test, this is' test".
-
Click on 'OK'
button.
-
Verify that
there is no error and the report is displayed.
-
Clear Report
Title if it is not empty.
-
Choose AE in
Data Sets list.
-
Verify that
the value of Report Title is:
'Match Variable Names and Labels for Data: AE'.
-
Clear Report
Title if it is not empty.
-
Type a long
title with more than 200 characters in Report Title, such
as:
-
Click on 'OK'
button.
-
Verify that
the report title is truncated and there is a warning
message will be displayed.
The title is too long. It can be truncated.
-
Click on the "OK" button.
-
Verify that the report is open as HTML and
the Report Title will be truncated.
Instructions
5
Start the CDISC Builder application from the icon
in desktop.
-
Click on the 'MATCHVAR'
icon to open the matchvar screen.
-
Click on [...]
next to Source Data text input.
-
Navigate to
'C:\temp\cdiscbld\input' folder.
-
Verify that
DM, AE, CO... will be displayed in Data Sets list box.
-
Choose AE in
Data Sets list.
-
Verify that
the value of Output is 'matchvar_AE.html'.
-
Choose DM in
Data Sets list.
-
Verify that
the value of Output is 'matchvar_DM.html'.
-
Click on [...]
next to Output text field.
-
Choose the
path of file and type 'matchvar_result.html' in file name.
-
Click on 'Save' button and verify that the
value of Output is the path that your choice with the
filename are 'match_result.html'.
Instructions
6
Start the CDISC Builder application from the icon
in desktop
-
Click on the 'MATCHVAR'
icon to open the matchvar screen.
-
Click on [...]
next to Source Data text input.
-
Navigate to
'C:\temp\cdiscbld\input' folder.
-
Choose
'Company' in Data Sets list.
-
Type 'This is
report title' in Report Title.
-
Click on 'OK'
button.
-
Verify that there is a report will be
displayed with title is 'This is report title' and
footnote contains date and username created such as:
Generated on: 02/16/2009, 10:00:45am
by: Administrator
-
Close report
and click on
'Cancel' button.
-
Verify that
the matchvar screen will be closed and will not create
report.
-
Click on the 'MATCHVAR'
icon to open the matchvar screen.
-
Verify that
the value of Report Title is 'This is report
title'.
-
Type 'This is
Second Report Title' in Report Title.
-
Click on
'Cancel' button.
-
Click on the 'MATCHVAR'
icon to open the matchvar screen again.
-
Verify that
the value of Report Title is 'This is report
title'.
-
Close this screen.
Instructions
7
Start the CDISC Builder application from the icon
in desktop.
-
Click on the 'MATCHVAR'
icon to open the matchvar screen.
-
Click on [...]
next to Source Data text input.
-
Navigate to
'C:\temp\cdiscbld\input' folder.
-
Choose
'Company' in Data Sets list.
-
Type 'This is
report title' in Report Title.
-
Click on 'Save
Code' button.
-
Type 'C:\temp\cdiscbld\output'
in Path text field.
-
Verify that
the file name is 'matchvar'.
-
Click on 'OK'
button.
-
Verify that
the View Code screen will be displayed.
-
Verify that
all information in view code is correct.
-
Verify that
the matchvar.sas will be created in 'C:\temp\cdiscbld\output'.
-
Navigate to
'C:\temp\cdiscbld\output'.
-
Right click on
'matchvar.sas' and select 'Batch Submit'.
-
Verify that
there is a 'matchvar.html' will be created in 'C:\temp\cdiscbld\output'.
For more information, please contact MXI
.
|